package com.chinasofti.etc.alcohol.dao.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lucas
 * @since 2019-05-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Order implements Serializable {

private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单编号
     */
    private String orderNumber;

    /**
     * 用户账号
     */
    private String userNumber;

    /**
     * 商品编号
     */
    private int commodityId;

    /**
     * 收货地址
     */
    private String address;

    /**
     * 商品数量
     */
    private int number;

    /**
     * 订单金额
     */
    private BigDecimal orderPrice;

    /**
     * 订单状态
     */
    private String orderState;

    /**
     * 生成时间
     */
    private LocalDateTime orderDate;

    /**
     * 商品名称
     */
    private String commodityName;


}
